import request from "../utils/request"
interface LoginState{
  name: string;
  pass: string;
}
export function login(data:LoginState){
  return request({
    url:"/api/login",
    method:"post",
    data
  })
}
interface RegState{
  name: string;
  pass: string;
  checkPass:string;
}
export function reg(data:RegState){
  return request({
    url:"/api/reg",
    method:"post",
    data
  })
}